home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / screen / morphit.zip / MORPHIT.DOC < prev    next >
Text File  |  1994-03-30  |  11KB  |  294 lines

  1.  
  2.                ╔═════════════════════════╗
  3.                ║       Morphit 1.0       ║
  4.                ║      by Rob Bairos      ║
  5.                ║    Copyright (c)1994    ║
  6.                ╚═════════════════════════╝
  7.  
  8.  
  9.  
  10.  ┌───────────────┐
  11.  │ Introduction: │
  12.  └───────────────┘
  13.  
  14.      Morphing is the process of transforming one image into another.  
  15.      Several techniques have been successfully developed and incorporated 
  16.      into many famous films and commercial segments.
  17.  
  18.      Morphit 1.0 implements a morphing function based on a two-dimensional
  19.      triangulation algorithm.  It allows you to take two GIF images and
  20.      create a FLI animation file, morphing the first image into the second.
  21.  
  22.  ┌───────────────┐
  23.  │ Requirements: │
  24.  └───────────────┘
  25.  
  26.      In order to use morphit 1.0 you will need the following:
  27.  
  28.     ■ Microsoft compatible mouse (two button)
  29.     ■ 286 CPU or higher
  30.     ■ VGA adapter
  31.     ■ At least 250K conventional memory to produce medium-sized FLI's.
  32.     ■ 0.5 - 1Meg disk space for each medium to large FLI file.
  33.     ■ DOS Version 3.0 or later
  34.  
  35.  
  36.  ┌──────────────────┐
  37.  │ Creating morphs: │
  38.  └──────────────────┘
  39.  
  40.      To begin the program type:
  41.  
  42.     morphit [file_name]
  43.  
  44.      where [file_name] is an optional morph description file.
  45.      The program begins by dividing the screen into four areas:
  46.            
  47.            ┌───────┬───────┐
  48.            │   1   │   2   │
  49.            ├───────┼───────┤
  50.            │   3   │   4   │
  51.            └───────┴───────┘
  52.  
  53.      Area 1 contains an image window used to hold the original morph frame.
  54.      Area 2 contains an image window used to hold the final morph frame.
  55.      Area 3 contains an image window used to hold the intermediate frames.
  56.      Area 4 contains user options and information.
  57.  
  58.  
  59.      To begin with, load the original and final frames into windows 1 and 2.
  60.      Do this by clicking the " Load " button with the left mouse button.  
  61.      You will be prompted for a valid GIF image filename. Dependent on the 
  62.      amount of free memory available, 320x200 GIFs are ideal since they 
  63.      correspond to the expected resolution of FLI animation files.
  64.  
  65.      If the image is valid, it will be presented in black and white in the
  66.      frame window.  (While using morphit, images will be reduced to 16 
  67.      levels of gray to conform to VGA hi-res color limitations, but the 
  68.      animations produced will contain 64 gray levels).  Once an image is 
  69.      loaded, you can increase or decrease the magnification by clicking 
  70.      the " Zoom + " or " Zoom - " buttons.  Each window contains a vertical 
  71.      and horizontal scroll bar and a (H)ome button to view the frame more 
  72.      readily. 
  73.  
  74.      In order to produce a morph, you must specify which points on image 1
  75.      correspond to points on image 2. These points are often called 
  76.      landmarks, and are used to make the morph more fluid in appearance.
  77.  
  78.      Click the left mouse button to insert landmarks on either image.  The
  79.      order in which you enter the points is important.  If you click three
  80.      points on one area on image1, the next three points you click on image2
  81.      should be in the corresponding area. For example, if you have loaded
  82.      a man's face in image 1 and a baby's face in image 2 you might click
  83.      the following points:
  84.  
  85.          1.Man's left eye
  86.          2.Man's right eye
  87.          3.                         Baby's left eye
  88.          4.                         Baby's right eye
  89.          5.                         Baby's left ear
  90.          6.Man's left ear
  91.          7.                         Baby's right ear
  92.          8.                         Baby's chin
  93.          9.Man's right ear
  94.         10.Man's chin
  95.         ....
  96.  
  97.      As you enter points on either image, a wire mesh is created around
  98.      them. The appearance of this mesh is critical for a proper morph. If
  99.      you select points in such a way that the second mesh contains
  100.      overlapping sections, undesired effects such as 'ghosting' will appear.
  101.      To fix you can either:
  102.  
  103.          ■ delete the offending point (and its counterpart)
  104.            by clicking the right mouse button over it
  105.  
  106.      or  ■ move the point by holding the left mouse button
  107.            over it and dragging it to a new location
  108.  
  109.      Points not yet paired will (ie not in the mesh) will appear as small
  110.      crosses.  These can be moved and deleted as well. Note that no mesh
  111.      is displayed until at least three point-pairs are entered.
  112.  
  113.      Once you have entered some point-pairs, you can start creating the
  114.      FLI file by clicking the " Begin Animation " button.  Watch the
  115.      status lines to observe the progress.  As each frame is created it
  116.      is displayed in the third image area.  Any frame can be saved as
  117.      a GIF file by clicking the ' SAVE ' button.
  118.  
  119.      The remaining buttons and options are described below:
  120.  
  121.      Button:                  What it does:
  122.  
  123.      Display Mesh             Toggles the mesh display.
  124.                   Use to speed up scrolling or view the
  125.                   original image.
  126.  
  127.      Reset Mesh               Removes all entered points from both
  128.                   images.
  129.  
  130.      Clear Image              Each output frame is cleared before
  131.      Between Frames           the next frame is displayed.
  132.  
  133.      Total Frames             Use this to set the total number of 
  134.                   frames in the animation file.  The 
  135.                   animation will morph from image1 to 
  136.                   image2 and back to image1.
  137.  
  138.      Test Morph               Set the desired percentage and click 
  139.                   this to create a single frame to ensure 
  140.                   the landmarks are well placed.  You can 
  141.                   save this output image by clicking the
  142.                   'Save' button near image 3.
  143.  
  144.      Save Morph               This will save a file containing the GIF 
  145.                   file names, FLI characteristics and 
  146.                   landmark points. You can use the filename
  147.                   created here as an optional command line 
  148.                   parameter.
  149.  
  150.      Load Morph               This will preload an existing morph 
  151.                   description, created by 'Save Morph' or your 
  152.                   last session.
  153.  
  154.      Begin Animation          Create the FLI animation file. Each time 
  155.                   you begin a morph, a file description named 
  156.                   "point0.dat" is automatically saved to disk.
  157.  
  158.      Exit to DOS              Free any memory and exit to dos.
  159.  
  160.      Memory                   Displays amount of free memory remaining.
  161.  
  162.      Status                   Display progress/error messages.
  163.  
  164.      image 1 title bar        Click here to display image characteristics.
  165.      image 2 title bar
  166.  
  167.      image 3 title bar        Click this to change/edit the FLI animation
  168.                   filename or resolution.
  169.  
  170.  
  171.      That's about it as far as instructions go.  It takes a bit of practice
  172.      to choose effective landmarks, while keeping execution time and
  173.      animation size low.  Generally speaking, place the most points around
  174.      the most prominent features, (eyes, nose, lips, hairline etc).  It is
  175.      not a bad idea to place landmarks on the image corners to keep the 
  176.      output animation full screen.
  177.  
  178.  ┌─────────────────┐
  179.  │ Viewing Morphs: │
  180.  └─────────────────┘
  181.  
  182.      Once you are satisfied with the morph output, you can execute a second
  183.      program to view it in real time.  At the dos prompt type:
  184.     
  185.     vfli [file_name]
  186.  
  187.      where [file_name] is the name of the animation file created.  This is
  188.      a quick no-frills viewer I wrote to view FLI animation files on a 
  189.      320x200 screen.  Just press any key to stop.
  190.  
  191.  
  192.  ┌─────────────────┐
  193.  │ Included Files: │
  194.  └─────────────────┘
  195.     
  196.      The following files are included with the morphit program:
  197.  
  198.     morphit.doc             this file
  199.     morphit.exe             morph editor
  200.     vfli.exe                morph viewer
  201.     
  202.     am.gif                  example images
  203.     cc.gif
  204.     boyg.gif
  205.     ronnie.gif
  206.  
  207.     ronboy.dat              example morph descriptions
  208.     amcc.dat
  209.  
  210.      To create the examples, type:
  211.  
  212.     morphit amcc.dat        
  213.     or
  214.     morphit ronboy.dat
  215.  
  216.      Select 'Begin Animation' to create the file.
  217.      Select 'Exit to Dos' to quit the editor.
  218.  
  219.      To view the animations type:
  220.  
  221.     vfli amcc.fli
  222.     or
  223.     vfli ronboy.fli
  224.  
  225.  ┌───────────────────────┐
  226.  │ Planned Enhancements: │
  227.  └───────────────────────┘
  228.  
  229.      I've started experimenting with the variations listed  below and 
  230.      hope to include them soon in future versions.
  231.  
  232.     ■ Color version (quantized image editing and animation output)
  233.     ■ XMS or EMS memory use (to edit larger color pictures)
  234.     ■ Support for different image formats (JPEG, BMP, etc)
  235.     ■ Support for different video cards (32K, SVGA, etc)
  236.     ■ Enhanced user interface and morphing options
  237.  
  238.  ┌───────────────┐
  239.  │ Registration: │
  240.  └───────────────┘
  241.                  
  242.      If you've enjoyed using morphit, or find it useful after a fifteen
  243.      day trial period please remember to honour the shareware principal
  244.      and register.  Registered members are entitled to a free update up
  245.      to six months from registration, and high discounts on all releases
  246.      after that.  Feel free to copy this program and redistribute it in
  247.      its entirety (all files listed above).
  248.  
  249.      To register please answer the following questions and send $15.00 
  250.      US money order to the address below:
  251.  
  252.     Rob Bairos                          66 Fatima Crescent
  253.     rbairos@cayley.uwaterloo.ca         Cambridge, Ontario CANADA
  254.     Voice:(519)623-3910                 N1R 7Z7
  255.  
  256.  
  257.     Name:    _________________________________________
  258.     Address: _________________________________________
  259.     City:    ________________ State/Province: ________
  260.     Country: ________________ Postal Code:    ________
  261.     
  262.     Voice Phone Number:  _____________________________
  263.     Data Phone Number:   _____________________________
  264.     Email Address:       _____________________________        
  265.  
  266.     Type of computer: (286/386/486/other) ____________
  267.     Type of video card: ______________________________
  268.  
  269.     Preferred method of delivery for next update:
  270.             _ 3.5 Disk
  271.             _ 5.25 Floppy
  272.             _ electronic mail
  273.     
  274.     other: __________________________________
  275.  
  276.  
  277.  ┌──────────────────────────────┐
  278.  │ Acknowledgments/Disclaimers: │
  279.  └──────────────────────────────┘
  280.     
  281.     "The Graphics Interchange Format(c) is the Copyright property of
  282.     CompuServe Incorporated. GIF(sm) is a Service Mark property of
  283.     CompuServe Incorporated."
  284.  
  285.     Although I have done by best to ensure this program does not 
  286.     erase your root directory, or empty your bank account I cannot
  287.     be liable for damages, arising from the use or abuse of this
  288.     program and its included documentation.
  289.  
  290.     Special thanks to Steven A. Bennett for the use of his gif decoding
  291.     algorithm, one of the first things in this program that worked.
  292.  
  293.  
  294.